package cn.worken.baseframe.service.service.impl;

import cn.worken.baseframe.bean.dto.QueryDemoDTO;
import cn.worken.baseframe.dao.mapper.IDemoMapper;
import cn.worken.baseframe.dao.po.DemoPO;
import cn.worken.baseframe.service.domain.DemoDO;
import cn.worken.baseframe.service.service.IDemoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author genxin.liu
 * @since 2021/12/27 14:21
 */

@Service
public class DemoServiceImpl implements IDemoService {
    
    @Resource
    public IDemoMapper demoMapper;
    
    @Override
    public List<DemoDO> queryDemoList(QueryDemoDTO queryDemoDTO) {
        List<DemoPO> demoPOList = demoMapper.queryDemoList(queryDemoDTO);
        return DemoDO.copyList(demoPOList);
    }
    
}
